home *** CD-ROM | disk | FTP | other *** search
Wrap
Path: nuscc.nus.sg!satrajit From: satrajit@iscs.nus.sg (Satrajit Sujit Ghosh) Newsgroups: comp.lang.c++ Subject: Re: VC++4.0 Linking Problem ... Date: 28 Mar 1996 16:21:52 GMT Organization: National University of Singapore Message-ID: <4jeeb0$k0p@nuscc.nus.sg> References: <4jdeor$9kh@nuscc.nus.sg> NNTP-Posting-Host: satrajit@sununx.iscs.nus.sg X-Newsreader: TIN [version 1.2 PL2] Benedict CHNG (chngchi1@iscs.nus.sg) wrote: : I have no problem generating code that calls mfc40(d).dll but when I : tried to standalone code that doesn't requie mfc40(d).dll, I get a link : error saying that my GDI32.DLL is corrupted. : I'm using VC++4.0 on Win95 OS. Program is generated by AppWizard. : You see, no many what program I try, I get the same linking problem. Even : those 'virgin' program that's churned out by the AppWizard (ie, they : aren't modified yet in any way). I even try those sample program included : in the 'on-line books'. Just to quote one, I tried that 'minimal hello' : sample. No matter how I tried to tweak the build settings, I just get the : same problem with my debug version, but whenever I tried to run the debug : version out of the developer's studio, I get a debug error too! : OK, the output is here : : --------------------Configuration: Helloapp - Win32 Release-------------------- : Compiling... : helloapp.cpp : Linking... : gdi32.lib(GDI32.dll) : fatal error LNK1143: invalid or corrupt file: no : symbol for comdat section 0x4 : Error executing link.exe. : helloapp.exe - 1 error(s), 0 warning(s) : Ben : PS : I'm really desperate now as my project dateline gets closer. I too am using VC4.0 however there does not seem to exist a similar problem. You could really start by raplcing GDI32.DLL. Alternatively u could try using the static library instead. THis option is provided at the creation of the startup files for the project. -- Satra[jit] ------------------------------------------------------ http://www.iscs.nus.sg/~satrajit Department of Information Systems and Computer Science National University of Singapore ======================================================